package model.entity.novel;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity
 * @date 2025/6/4
 * @description 用户收藏实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class History {
    @Schema(description = "收藏ID")
    private Integer historyId;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "小说ID")
    private Integer novelId;

    @Schema(description = "阅读时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

    @Schema(description = "章节")
    private Integer chapterIndex;

    @Schema(description = "最后阅读时间")
    private Date lastReadTime;

    @Schema(description = "阅读进度")
    private Integer page;

    @Schema(description = "阅读的小说")
    private Novel novel;

    @Schema(description = "阅读的章节")
    private Chapter chapter;
}    